<%@ page pageEncoding="UTF-8"%>

<%@ taglib uri="/tags/struts-tiles" prefix="tiles"%>
<%@ taglib uri="/tags/struts-html" prefix="html"%>
<%@ taglib uri="/tags/struts-logic" prefix="logic"%>
<%@ taglib uri="/tags/struts-nested" prefix="nested"%>
<%@ taglib uri="/tags/struts-bean" prefix="bean"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="/tags/trymore" prefix="tm"%>

<script type="text/javascript">
	$(function(){
		$.each($("textarea", $("#formLogSummary")), function(){
			$(this).html($(this).text().replace(/<br\/>/g,"\n"));
		});
	});
</script>

<div class="pageContent">
	<form method="post" action="app/worklog.do?action=actionSaveWorkWeeklyLog" class="pageForm required-validate" 
		onsubmit="return validateCallback(this, dialogAjaxDone);" id="formLogSummary">
		<div class="pageFormContent" layoutH="56">
			<table cellspacing="10" cellpadding="10" class="dform">
				<tr>
					<td style="vertical-align: top;">工作总结：</td>
					<td>
						<textarea rows="6" cols="70" name="logEvent" class="textInput required" style="width: 99%">${entity ne null ? entity.logEvent : ''}</textarea>
					</td>
				</tr>
			</table>
		</div>
		<div class="formBar">
			<ul>
				<li>
					<div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div>
				</li>
			</ul>
		</div>
		<input type="hidden" name="startDate" value="${startDate}" />
		<input type="hidden" name="endDate" value="${endDate}" />
		<input type="hidden" name="currentDate" value="${currentDate}" />
		<input type="hidden" name="id" value="${entity ne null ? entity.id : -1}" />
		<input type="hidden" name="cat" value="${cat}" />
	</form>
<div>
